
import { createApp } from 'vue'
import { createPinia } from 'pinia'
//持久化存储插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'
//引入初始化样式文件
import '@/styles/common.scss'
//引入懒加载指令插件
import { lazyPlugin } from '@/directives/index'
//引入全局组件插件
// import { componentPlugin } from '@/components'
import { componentPlugin } from '@/components/index.js'

const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
//注册持久化插件
pinia.use(piniaPluginPersistedstate)
app.use(router)
//使用lazyPlugin插件
app.use(lazyPlugin)
//使用全局组件插件
app.use(componentPlugin)
app.mount('#app')


